<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<MyStack.Models.StoriesView>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Activity
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Activity</h2>
   <table>
        <% foreach (var item in Model)
           { %>
        <tr>
            <td>
            <%= Html.ActionLink(item.ActingUser, "Current", "Stack", new { id = item.ActingUserId }, null)%>                
            </td>
            <td>
                <%= Html.Encode(item.Action) %>
            </td>
            <td>
                <%= Html.ActionLink(item.Title, "Pop", "Stack", new { storyid = item.StoryId }, null)%>
            </td>
            <td>
                From &nbsp;
                <%= Html.ActionLink(item.SourceUser, "Current", "Stack", new { id = item.SourceUserId }, null)%>
            </td>
            <td>
                By &nbsp;
                <%= Html.ActionLink(item.Author, "Current", "Stack", new { id = item.AuthorId }, null)%>
            </td>
            <td>
                &nbsp;
                <%= Html.Encode(item.Time) %>
            </td> 
        </tr>
        <% } %>
    </table>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
